package com.yonyou.cyxdms.basedata.service.scheduler;

import java.util.HashMap;
import java.util.Map;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.schedulerx.worker.domain.JobContext;
import com.alibaba.schedulerx.worker.processor.JavaProcessor;
import com.alibaba.schedulerx.worker.processor.ProcessResult;
import com.yonyou.cyxdms.basedata.service.service.feign.VehicleIntoToDmsService;

import lombok.extern.slf4j.Slf4j;

/**
 * Context
 * 定时任务 同步备件信息到服务站
 * Author YangJie
 * Date 2022-05-24
 */
@Component
@Slf4j
public class SendAllBasicToDms {
    @Autowired
    private VehicleIntoToDmsService vehicleIntoToDmsService;


    @XxlJob(value = "sendVehicleAllInfoToDms")
    public ReturnT<String> process(String param) throws Exception {
    	Map<String, Object> queryParam=new HashMap(12);
    	log.info("===================下发车辆主数据开始===================");
    	vehicleIntoToDmsService.sendVehicleAllInfoToDms(queryParam);

        log.info("===================下发车辆主数据完成===================");
        return ReturnT.SUCCESS;
    }


}

